Client side form validation - no dependencies / pure javascript.