@Override
    protected String doInBackground(String... strings) {
      String status = "";
      String stringURL = Constant.hostURL + Constant.loginMethod;
      Log.d("QUYYYY1111", "Login url: " + stringURL);
      Log.d("QUYYYY1111", "Login param: " + strings[0] + "-" + HSTSUtils.encryptMD5(strings[1]));

      try {
        URL url = new URL(stringURL);
        HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
        urlConnection.setReadTimeout(100000);
        urlConnection.setConnectTimeout(30000);
        urlConnection.setRequestMethod("POST");
        urlConnection.setDoInput(true);
        urlConnection.setDoOutput(true);

        List<NameValuePair> params = new ArrayList<NameValuePair>();
        Constant.username = strings[0];
        params.add(new BasicNameValuePair("username", strings[0]));
        params.add(new BasicNameValuePair("password", HSTSUtils.encryptMD5(strings[1])));

        OutputStream os = urlConnection.getOutputStream();
        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, "UTF-8"));
        writer.write(HSTSUtils.getQuery(params));
        writer.flush();
        writer.close();
        os.close();

        urlConnection.connect();

        InputStream inStream = urlConnection.getInputStream();
        BufferedReader bReader = new BufferedReader(new InputStreamReader(inStream));
        String temp, response = "";
        while ((temp = bReader.readLine()) != null) {
          response += temp;
        }
        Log.d("QUYYY111", "Response: --" + response);
        try {
          JSONObject patientObject = new JSONObject(response);
          Constant.accountId = patientObject.getString("accountId");
          Constant.PATIENT_NAME = patientObject.getString("fullname");
          Constant.patientId = patientObject.getString("patientId");
          status = patientObject.getString("status");
          Log.d(
              "QUYYY111",
              "Benh nhan: " + "Account: " + Constant.accountId + " Patient: " + Constant.patientId);

        } catch (JSONException e) {
          e.printStackTrace();
        }

      } catch (MalformedURLException e) {
        e.printStackTrace();
        return null;
      } catch (IOException e) {
        e.printStackTrace();
        return null;
      }
      return status;
    }