corrected validation process