bugfix in the form validation