updates regarding login state and logout