how to check if a field has error angular code example Example: validation minlength angular Validators.minLength(9)