Could this be why your validate doesn’t work?
go to user menu and click on “Reload”. It will clear frappe’s cache where hooks are cached.
You can also do that from the command line using:
bench --site SITENAME clear-cache
Those tips I found here How to know hooks binding to a specific doctype? - #4 by max_morais_dmm