updateAccount implementation