private void btnRegisterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRegisterActionPerformed
        if (!txtUsername.getText().trim().isEmpty()
                && !new String(txtPassword.getPassword()).trim().isEmpty()) {
            this.cp.username = txtUsername.getText();
            this.cp.password = new String(txtPassword.getPassword());

            txtUsername.setEnabled(false);
            txtPassword.setEnabled(false);

            btnLogin.setEnabled(false);
            btnRegister.setEnabled(false);
            btnRegister.setText("Loading...");

            this.currentState = LauncherState.REGISTERING;

            LoadCaptchaWorker lcw = new LoadCaptchaWorker(cp, txtUsername.getText(), new String(txtPassword.getPassword()));
            lcw.execute();
        }
    }//GEN-LAST:event_btnRegisterActionPerformed