fix chat when logged in