Simplified by just checking typeof error.details. You can customize Accounts.validateNewUser error.reason. My mistake.