If, after a specified census is officially published, any city is divided into a greater number of wards and has elected a greater number of alderpersons than the city is entitled, nevertheless such division and election shall be valid and all acts, resolutions, and ordinances of the city council of such city, if in other respects in compliance with law, are valid.
65 ILCS 5/5-2-7