Fixed javascript example.
Finished example of form validation.