An action of any kind shall not be instituted for the purpose of contesting or enjoining the collection of any special assessment unless, within 45 days after the confirmation of the special assessment roll, written notice is given to the council indicating an intention to file such an action and stating the grounds on which it is claimed that the assessment is illegal and unless that action is commenced within 90 days after the confirmation of the roll. If a portion of an assessment roll is determined to be illegal, in whole or in part, the council may revoke its confirmation, correct the illegality, if possible, and reconfirm it. Property which is not involved in the illegality shall not be assessed more than was imposed upon the original confirmation without further notice and hearing thereon.