Simplified getValidator method.