Validation generator no undefined