<input #password="ngModel" type="password" name="password" minlength="5" maxlength="30" pattern="((?=.*d)(?=.*[a-z])(?=.*[A-Z]).{6,20})" required ngModel>