Form validation with JS.
--amend
Correcting errors.