Form validation with JS.