Currently we don't have a way to support custom error message with keys like
passwordDoNotMatch for type safety. You can help me if you have any idea how should I deal with it, making it type safe in template as well. So this is a workaround.
Please check the ts file as well how how I have implemented password not same custom error.