Adding HTML validation to the forms.