I recently replaced the wall light in my bathroom, it was a long vanity light wired on both ends and I replaced it with a single mount light. The problem is that the light, the switch, and a wall recepticle were all connected. Since putting up the light in bathroom the light does not work. The recepticle works but I cannot figure out how they had it wired so all items work. PLEASE HELP.