public void onClick(View onClickView) {
    switch (onClickView.getId()) {
      case R.id.forgotPassword:
        Toast.makeText(getBaseContext(), "Not implemented! Coming soon.", Toast.LENGTH_LONG).show();

        break;
      case R.id.login:
        if (isValidInput()) {
          CustomProgressDialog.startProgressDialog(this);
          loginPresenter.doLogin(
              usernameEditText.getText().toString().trim(),
              passwordEditText.getText().toString().trim());
        }
        break;
    }
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (loginPresenter != null) loginPresenter.onDestroy();
 }