Do not show a list of previous messages when writing a response, and make sure that the "Enter" key can be used as well to submit the form
Add more input validity checks on ajax/sendMessage.php