updated the code for updating the user information