fixed the error message in 'new_chat.html' not displaying