added validation to message form