update user entity