revert commit f50fbce40f
- if javascript is disabled on user client the validation function
won't work