I'm implementing an registration form (reactive). In which I have password and confirm password. I'm validating both field but while submitting I want only the password field to go to spring boot. Any one have idea how to do that?

```
//registration.ts

 registrationForm: FormGroup;
  constructor(private fb: FormBuilder,private authService: AuthService, private router: Router) {}

  ngOnInit() {
    this.registrationForm = this.fb.group({
      fullname: ["", [Validators.required, Validators.minLength(5)]],
      emailId: ["", [Validators.required, Validators.minLength(5)]],
      password: [null, Validators.required],
      confirmPassword: [null, Validators.required],
      phoneNumber: [null, Validators.required],
      enabled: [true],
      roles:this.fb.array([{'role':'ADMIN'}]),

      address: this.fb.group({
        city: [""],
        state: [""],
        country: [""],
        postalCode: [""],
      }),
    },
    //{ validator: this.ConfirmPasswordValidator("password", "confirmPassword")}
    { validator: this.checkPasswords}

    );

  }

  checkPasswords (group : FormGroup) {
    let pass = group.get('password').value;
    let confirmPass = group.get('confirmPassword').value
    return pass === confirmPass ? null : { passwordNotSame: true } 
  }

RegisterUser(form: NgForm) {
    this.authService.register(form)
    .subscribe(
      result => {
        if (result.token) {
          localStorage.setItem('token', result.token)
          this.router.navigate(['dashboard'])
        }
      }
    )
  }

```

Anyone please give some idea. i'm new to angular