I want upon a succesful login to close my MatDialog, I\'m using AWS Amplify UI components for the login/register functionality and those are placed in a simple MatDialog. He