I have gone through a lot of stack overflow questions similar to this but still unable to find out the solution. I am using a custom async validator in a reactive form which