Add getValidator method