The validity of any assessment levied under this part shall not be contested in any action or proceeding unless the action or proceeding is commenced within 30 days after the time the assessment is levied. Any appeal from a final judgment in such an action or proceeding must be perfected within 30 days after the entry of the judgment.