added validation to all forms