display an error when the entered chatmessage is too long