empties chat  values on submission. changes firebase url to /chats
accomplishes basic functionality for chat window