Validation on two fields [Solved]

https://book.cakephp.org/3.0/en/core-libraries/validation.html#custom-validation-rules