modified to return Validator object