error handling for expanded_account