Modified the chat tab to be inserted only if the user is logged in.