added response status code check for update user