Validator is injected in the constructor