Polish login/logout flow