update user resource