Completes the repo for getting and posting chats. Adds an error message if account name is taken on signup or username/password are incorrect on signin