I have seen simple solved solution how to block link at button (Submit button) when form is not with all values.
Example: class disabled.
How to do it actually in Javascript as usually (in the past) it will work validation only when you click Submit button. In this case it is blocked link till you fill in all input values.