It should ends with 't'
If you want to apply conditional validation on 'Profession' or 'Task Id', then you need to add 'name' input as 'Bharat'
{{userFormGroup.controls.name.errors.endsWith.message}}