how to check if a form is invalid angular template driven forms code example Example: validation minlength angular Validators.minLength(9)