login form with validation using angular/forms without reactive forms code example
Example: angular9+how+to+add+validators
this.form.controls["firstName"].setValidators([Validators.minLength(1), Validators.maxLength(30)]);
this.form.controls["firstName"].setValidators([Validators.minLength(1), Validators.maxLength(30)]);