Could you possibly have a shorted wire in the head light or switch that kills the bike or a loose cable to the battery?
Also check current draw on battery as well as bat voltage charged than turn on key and see how far the voltage drops may be a bad batt.
Also check current draw on battery as well as bat voltage charged than turn on key and see how far the voltage drops may be a bad batt.