The code of form validation is quite old-fashioned. Use zope forms...