You likely have a switch loop. Wrap the copper or silver ground wires from the light fixture around the ground screw.
![How To Identify Wiring Diy](https://diy.sndimg.com/content/dam/images/diy/fullset/2009/7/1/0/CFI101wireb.jpg.rend.hgtvcom.406.542.suffix/1420774272477.jpeg)
How To Identify Wiring Diy
Install light fixture with 2 black and 2 white wires. The ground should be connected to the bare wires ground in the box. Connect the two black wires from the light fixture to the black wire from the electrical box the same way you connected the white wires. Repeat these connections with the two white. Connect the two white wires from the light fixture to the white wire located in the electrical box by twisting an orange wire nut onto all three wires. Bathroom lighting particularly light bars over a bathroom vanity often will have receptacles for two or more light bulbs. Then connect it to the supply ground wire of the junction box with a wire connector.
Connect the lead wires from the fixture to the black hot wire in the electrical box by twisting a wire connector to the ends of the lead and hot wires. In the course of replacing this light receptacle i came across two white wires. Never ever ever connect the ground wire to the white wire. Then push the connected wires into the junction box. You should find which one is hot when the switch is on mark it black with electrical taps and connect that one to the black wire of the fixture. The other white should connect to the white of the fixture.
How to install bathroom light fixtures with two black two white wires. Never connect the fixtures ground wire to the white wire. Connect the black or red current wires and the white neutral wires. You can wrap the wire around one of the screws that holds the fixture on but the only purpose it serves is to help hold the fixture up while you wire the black hot and white common wires. How do you find out which wire is hot or the black wire.