Upgrade, Login and Logout