A person is not eligible to hold office as a member of a municipal legislative body unless he or she is otherwise qualified, resides in the district and both resided in the geographical area making up the district from which he or she is elected and was a registered voter of the city at the time nomination papers are issued to the candidate as provided for in Section 10227 of the Elections Code.