initialized the validator object