/** Method for initialize buttons in login page */
  public void initializeButton() {
    loginview
        .getSignup()
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View arg0) {
                Intent myIntent =
                    new Intent(
                        LoginActivity.loginActivity.getApplicationContext(),
                        RegisterActivity.class);
                LoginActivity.loginActivity.startActivity(myIntent);
              }
            });

    loginview
        .getLogin()
        .setOnClickListener(
            new OnClickListener() {
              @Override
              public void onClick(View v) {
                getUserInput();
                Log.e("hello", "11" + input_username.isEmpty());
                Log.e("hello", "22" + input_password.isEmpty());
                if (input_username.isEmpty() || input_password.isEmpty()) {
                  AlertDialog.Builder alert =
                      initializeAlert("Invalid input", "Please enter your username and password");
                  alert.show();
                } else {
                  new CheckUserTask().execute(RegisterActivity.User_url);
                }
              }
            });
  }
 /** Get user input from the EditText field */
 public void getUserInput() {
   input_username = loginview.getUsername().getText().toString();
   input_password = loginview.getPassword().getText().toString();
   Log.e("hello", "1" + input_username);
   Log.e("hello", "2" + input_password);
 }