Added prevention of empty chat submitting.