corrected validate errors