corrected validation errors