I was watching this tutorial:https://www.youtube.com/watch?v=aHD7PLXKTsQ
Somehow, in the tutorial, there is no need to type nestedGroup.controls.field.invalid
nestedGroup.controls.field.invalid