corrected validation