revised setting the validator object