Corrected errors

corrected errors found in validator