title: Change angular11 form validation status when using FormGroup, FormBuilder and Validators
body: <pre><code>onblurRePass(event:any){
      this.valOfRePass = this.empProperties.repassword;
      console.log(&quot;Pass Val: &quot;+this.valOfPass + &quot; RePass Val: &quot;+this.valOfRePass);
  
      if(this.valOfPass == this.valOfRePass){
        this.matchPassword = 'matched';
        this.addForm.status = 'VALID'; // need to change this status
      }
      else{
        this.matchPassword = 'unmatched';
        this.addForm.status = 'INVALID';  //need to change this status
      }
    }
  </code></pre>
  <p>Error: Cannot assign to 'status' because it is a read-only property.ts(2540)</p>