Any person who believes his or her name may be used as a write-in candidate for President of the United States shall, not later than 21 days before the primary election, file an endorsement of his or her write-in candidacy with the Secretary of State, or no votes shall be counted for that write-in candidate.
Ca. Elec. Code § 6822