private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLoginActionPerformed
        if (this.currentState == LauncherState.WAIT_LOGIN
                && !txtUsername.getText().trim().isEmpty()
                && !new String(txtPassword.getPassword()).trim().isEmpty()) {
            btnLogin.setEnabled(false);
            AuthWorker aw = new AuthWorker(this, txtUsername.getText(), new String(txtPassword.getPassword()));

            aw.execute();
        } else if (this.currentState == LauncherState.LOGGED_IN) {
            btnLogin.setText("Login");
            this.cancelRegistration(); // this enables back text fields and buttons

            removeSkinPanel();

            txtNewPassword.setText("");
        }
    }//GEN-LAST:event_btnLoginActionPerformed