update user attributes function