if it was installed correctly it shouldn't be cuaseing problems cuase it should just be tapped in. i still think its your headlight switch. and what you describe almost confirms that idea since when the switch is out of the loop it works when you use the switch it doesn't..

Get a new switch