update account when edit it with an existed account