chat app working, authentication and helper methods not working