Quick fix, added
mLoginDialog.setCancelable(false);
to the MainActivity, thus making sure that the login dialog is completed.