This is client-side validation (HTML5).