Plus one what tools said. Its amazing how quickly the battery can drain down when you are working on a bike. If you were cranking it and starting it several times, or just checking all of the lights to see if they work, can and will drain a battery rather quickly, especially one that has been sitting not hooked up for a few days. Start by putting a good charge on the battery and see if that fixes it. Im no electrical expert, but reading your description sure sounds like a battery issue to me.
I know enough to get me in trouble.
1981 Yamaha XS650 Special(current cafe, code name El Diablo Rojo)
1981 CM400C, completed project (code name Home Wrecker)
1981 CB750K, completed project (code name Winter Blues)
SOLD 9-21-2013 gone but certainly not forgotten.
2009 USA Choppers Bad Boy, rigid frame custom chopper.