added login/logout flow