As validator you can provide your custom function:

Please see final form validate prop. This function takes value, allValues and meta as arguments and returns error message when it fails, otherwise it returns undefined.