Basic validation can be done with HTML/CSS and the CSS selector :user-valid or :user-invalid pseudo-selectors