Troubleshooting bath vanity light not working. Found a loose connection and no junction box. Installed junction box and hardwired light fixture.