Added a check to run the validator
Added a missing use stmt