Every person who exercises any function of a public office without taking the oath of office, or without giving the required bond, is guilty of a misdemeanor.
This section does not affect the validity of acts done by a person exercising the functions of a public office in fact, where other persons than himself are interested in maintaining the validity of such acts.
Ca. Gov. Code § 1303