corrected validate