inspect all wires for damage (places they could be grounding out on the frame)
make sure the ground contacts are strong. Inspect connecting blocks, and all terminations inside the headlight. check for continuity on your ignition switch. Check your rear light bulb, some peds have it wired pre ignition as a safety feature.