the validator class

with initial methods and variables