update the user login and register