corrected errors for validator