update user login and register