added validation for email field in form, addAction and a handler for formElementErrors