refactor validator, will move schema tasks into another class
now refactor done and have 2 classes