handle invalid account name
don't add index entry for default account