Login and logout, with angular based chat page