Tweaks the login/logout