Added in login logout and the start of the chat