Avoid document update conflict in updating the account.
Fixed error in updating ia-email on admin/people/$username page.
Fixed errors in linking accounts.