fixed chat, authentication doesn't work locally well