Improved form validation from the client side.