I just discovered the required argument that can be passed to the html input tag so maybe we can get rid of javascript validation (or maybe we can offer both in case someone uses an old browser where required doesn't work)
The nice thing with required is that it automatically shows a flag at the places that are required but not yet filled in when the submit button is pressed