I am trying to install a vanity light. There are 4 green wires tied in a bundle, 4 black wires tied in a bundle, one loose green wire and one loose bare wire. The new light has one white wire, one black wire and one bare wire. I connected the wires and all I get is direct current to the fixture. I cannot figure out how to connect the wires to have the light switch turn the light on and off. Please help.
Thank You