private void btn_loginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_loginActionPerformed
        boolean failed = false;
        try {
            Database db = MysqlDatabase.getInstance();
            db.first(txf_host.getText()+":"+txf_port.getText(), txf_database.getText(), 
                            txf_user.getText(), String.valueOf(txf_pw.getPassword()));
        } catch (MySQLSyntaxErrorException e) {
            failed = true;
            Error_Frame.Error("Please fill out completly\n\n"+ e.getMessage()); 
        } catch (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException e) {
            failed = true;
            Error_Frame.Error("No database found - Please check data and try again\n\n" + e.getMessage()); 
        } catch (SQLException e) {
            failed = true;
            Error_Frame.Error("Wrong Username or Password - Please check data and try again\n\n" + e.getMessage());
        } catch (Exception e) {
            failed = true;
            Error_Frame.Error(e.getMessage());
        }
        
        if (!failed) {
        DesEncrypter.SQLencrypted(txf_host.getText(), txf_port.getText(), 
                                txf_database.getText(), txf_user.getText(), txf_pw.getPassword());
        Helpdesk_Main.setMVC();
        this.dispose();
        }
    }//GEN-LAST:event_btn_loginActionPerformed