corrected validation error