complete login/logout flow