update graph and login