@Override
    protected void onPostExecute(final String token) {
      mAuthTask = null;
      showProgress(false);

      if (token != null) {
        showToast("Login Successful");

        UserInfoTask userInfoTask = new UserInfoTask(mActivity);

        userInfoTask.execute(token);
      } else {
        mPasswordView.setError(getString(R.string.error_incorrect_password));
        mPasswordView.requestFocus();
      }
    }
 private void loadUserInfo() {
   if (UserAPI.isLoggedIn()) {
     UserInfoTask task = new UserInfoTask();
     task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
   }
 }