being un registered not having my license to ride it
Actually the CHP had it right so you were lucky to get off.
$20 lifetime license plate.
http://www.dmv.ca.gov/forms/reg/reg230.pdf
To get a M1 or M2 if you are under 21 you have to take the motorcycle safety course.
http://www.dmv.ca.gov/pubs/dl655/mcycle_htm/requirements.htm
Motorcycle Handbook License Requirements
California issues the following license classes for two-wheel vehicle operation:
Class M1—You may operate any two-wheel motorcycle, motor-driven cycle, or motorized scooter and all vehicles listed under Class M2.
NOTE: The permit and license requirements in this handbook pertain to two-wheel vehicles and are referenced in Section12804.9 of the California Vehicle Code.
Class M2—You may operate any
motorized bicycle, moped, or a
bicycle with an attached motor, or a motorized scooter.
You may obtain a Class M1 or M2 license at any DMV office which provides driver license services. Motorcycle law tests and skill tests are required.
NOTE: Class C licensees may operate a motorcycle with a side car attached or a three-wheel motorcycle.