you should check if the validator is enabled in the project before trying to use it