California State Law requires that all people riding electric bikes wear approved helmets and that riders are 16 years of age or older. 
Regulations do vary from state to state, so you'll definitely want to check regulations in your local area.