added validation for all forms