BZ-8779: validate form on submit (submit button is always clickable)