@Override
 public void onNext(User user) {
   super.onNext(user);
   Log.d(this.getClass().getName(), user.toString());
   AccountManager.getInstance().login(user);
   getView().navigateToMainActivity();
   getView().finishView();
   getView().dismissLoadingView();
 }
 @Override
 public void onError(Throwable e) {
   super.onError(e);
   LoginPresenter.this.showOnError(e.getMessage());
   getView().dismissLoadingView();
 }