Form validation issue

i have an issue for forms ,
first i want to validate that the Conformation password is just like the first password , the other issue that i want the date never be older than today’s date .

<ion-label floating>password</ion-label>
    <ion-input type="password" formControlName="passwd" ng-control="password" required></ion-input>
  </ion-item>
  <ion-item *ngIf="registerForm.controls.passwd.hasError('required') && registerForm.controls.passwd.touched">
    <p>error msg</p>
</ion-item>
<ion-item *ngIf="registerForm.controls.passwd.hasError('minlength') && registerForm.controls.passwd.touched">
    <p>error msg</p>
</ion-item>
<ion-item *ngIf="registerForm.controls.passwd.hasError('pattern') && registerForm.controls.passwd.touched">
    <p>error msg</p>
</ion-item>
  <ion-item>
    <ion-label floating>retype password </ion-label> 
    <ion-input type="password" formControlName="passwd2" ng-control="password" required></ion-input>
  </ion-item>
 <ion-item>

<ion-label>date</ion-label>
          <ion-datetime displayFormat="YYYY-MM-DD" formControlName="date" required></ion-datetime>
      </ion-item>`Preformatted text`