update user model + api working