prevent the users from sending chat messages that are too long