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