Adding light to existing circuit.
I installed a bathroom vent fan and light to an existing circuit. I spliced into the circuit between the switch and existing vanity light. Now when the switch is on the original vanity light comes on but the new light is off. When the switch is off the original light is off but the new fan and light come on. Apparently I should have pulled the power directly from the original light fixture but there is no way to reach it without cutting into the wall. I'm thinking about replacing the original light with a pull chain so that I can turn it off manually and leave the circuit as is. Would this be a code violation or safety issue?