bugfixes in form validation, added regexp validation, added validation through helper