The mayor and each member of the council of the city shall reside within the corporate limits of the city during their terms of office. If any officer changes residency to one outside of the city, such officer's office shall be declared vacant.