This form uses HTML5 form validation, including the email input type and the required & pattern attributes to validate length and required characters in the password fields. It also uses the oninput event and the setCustomValidity() function to match up the "password" and "confirm password" fields.
ValidationSee the Pen by peiche (@peiche) on CodePen.