prevent empty or too long chats. closes #6