private void regcmd_createActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_regcmd_createActionPerformed
        try {
            ClientLogic cl = new ClientLogic();
            if (cl.listenSocket("new"+regtxt_username.getText(), cl.SHA(regtxt_password.getText())) == true) {
                String fullMessage = cl.in.readUTF();
                String[] cutMessage = fullMessage.split("]");
                String result = cutMessage[0];
                String message = cutMessage[1];
                System.out.println("INCOMING: " + fullMessage );
                
                if(result.substring(1).equalsIgnoreCase("Success")){
                
                JOptionPane.showMessageDialog(null, message, "Success", JOptionPane.WARNING_MESSAGE);
                this.dispose();
                }
                else
                JOptionPane.showMessageDialog(null, message, "Error", JOptionPane.WARNING_MESSAGE);
            }
        } catch (Exception ex) {
            Logger.getLogger(Registration.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        
    }//GEN-LAST:event_regcmd_createActionPerformed