private void ShowLoginView()
 {
     // If the login screen is not already displayed, display it. If the login screen is
     // displayed, then getting back here means the login in progress did not successfully
     // complete. In that case, notify the login view so it can update its UI appropriately.
     if (loginViewController == null)
     {
         CreateAndPresentLoginView();
     }
     else
     {
         loginViewController.LoginFailed();
     }
 }