login and update and stuff