Fix form validation and do JS minification