private void btnCreateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCreateActionPerformed
        // TODO add your handling code here:
        this.lblCredit.setForeground(Color.white);
        this.lblPasswordConfirm.setForeground(Color.white);
        this.lblPassword.setForeground(Color.white);
        this.lblFirstName.setForeground(Color.white);
        this.lblUsername.setForeground(Color.white);
        boolean valid = true;
        String password = this.changePasswordIntoString(this.tbxPassword.getPassword());
        String passwordConfirm = this.changePasswordIntoString(this.tbxPasswordConfirm.getPassword());
        String firstName = this.tbxFirstName.getText();
        BECreateAccount newUser = new BECreateAccount();
        Pattern patternObj = Pattern.compile("\\d+");
        Matcher matcherObj = patternObj.matcher(password);
        
        if(this.tbxCredit.getText().length() != 16)
        {
            this.lblCredit.setForeground(Color.black);
            valid = false;
        }
            
        if(!(passwordConfirm.equals(password)))
        {
            this.lblPasswordConfirm.setForeground(Color.black);
            valid = false;
        }
            
        if((password.length() < 8) || ((password.toLowerCase().equals(password)) && !matcherObj.lookingAt()))
        {
            this.lblPassword.setForeground(Color.black);
            valid = false;
        }
            
        if(firstName.length() > 20)
        {
            this.lblFirstName.setForeground(Color.black);
            valid = false;
        }
        

        if(valid)
        {    
            if(newUser.doIt(this.tbxUsername.getText(), password, false, firstName, Long.valueOf(this.tbxCredit.getText())))
            {
                this.setVisible(false);
                try {
                    d1.saveToFile();
                } catch (IOException ex) {
                    Logger.getLogger(FENewUser.class.getName()).log(Level.SEVERE, null, ex);
                }
                new FESignOn().setVisible(true);
            }
            else
            {
                this.lblUsername.setForeground(Color.black);
                valid = false;
                this.lblProblems.setVisible(true);
            }
        }
        
        else
        {
            this.lblProblems.setVisible(true);
        }
    }//GEN-LAST:event_btnCreateActionPerformed