fix the form for new message and add validation