set the account type correctly when editing account