Fix a bug where it is possible to send a message twice by double clicking the submit button