made some changes to update user