I solved it by also checking if the form was touched when displaying error messages.
So, for example, the submit button looks like this
<input type="submit" class="btn btn-default" [disabled]="loginFormGroup.invalid && loginFormGroup.touched" />
I solved it by also checking if the form was touched when displaying error messages.
So, for example, the submit button looks like this
<input type="submit" class="btn btn-default" [disabled]="loginFormGroup.invalid && loginFormGroup.touched" />