get state from form is valid angular code example Example: validation minlength angular Validators.minLength(9)