As mentioned, check the headlight connector, the one under the tank. The contacts are prone to corrosion, on mine you could feel the connector getting warm. I got round the problem by fitting relays to operate the headlights. Now, the only current through that connector is enough required to switch the relays. They take care of the greater current draw of the lights.