I think I'd rather separate this validate method from the form field, could you move into a new `utils.py` module? There is also no need to let it start with an underscore as it implies it's just an internal function. But there may be use cases where users actually may want to call the function directly.