two-phase-validation