Notice that the validator completely overrides the expected answer, as the correctness of the answer is determined by the validator returning true/false, and this validator doesn’t actually use the provided answer in any way.
Enter a number!
This demonstrates a very basic custom validator, which returns correct if the submitted answer is positive.
Enter a number!