upgrade and login