update user and role.