Fixed form validation and the way regular expressions and error messages are generated