private void registerjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_registerjButtonActionPerformed
        // TODO add your handling code here:
        if(firstNamejTextField.getText().length() == 0 ||
            lastNamejTextField.getText().length() == 0 ||
            agejTextField.getText().length() == 0 ||
            adrLine1jTextField.getText().length() == 0 ||
            statejTextField.getText().length() == 0||
            zipjTextField .getText().length() == 0 ||
            userNamejTextField.getText().length() == 0 ||
            jPasswordField.getText().length()== 0)
        {
            JOptionPane.showMessageDialog(null, "Some of the feilds are null");
        }
        else
        {
            try {
                Integer.parseInt(agejTextField.getText());
                Integer.parseInt(zipjTextField.getText());

            } catch (NumberFormatException e) {

                JOptionPane.showMessageDialog(null, "Zip and Age Must be a Numeric");
                return;
            }
            Exchange selectedExchange = (Exchange)exchangejComboBox.getSelectedItem();
            Employee employee = selectedExchange.getAccountsOrganization().getEmployeeDirectory().newEmployee();
            UserAccount userAccount = selectedExchange.getUserAccountDirectory().newUserAccount();
            AccountsEmployeeRole accountsEmployeeRole = new AccountsEmployeeRole();
            employee.setFirstName(firstNamejTextField.getText());
            employee.setLastName(lastNamejTextField.getText());
            employee.setDepartment("Accounts");
            employee.setAge(Integer.parseInt(agejTextField.getText()));
            SimpleDateFormat formatter= new SimpleDateFormat("yyyy/MMM/dd HH:mm:ss");
            String dob = formatter.format(jCalendar1.getDate());
            employee.setDOB(dob);
            employee.getAddress().setAddressLine1(adrLine1jTextField.getText());
            employee.getAddress().setAddressLine2(adrLine2jTextField.getText());
            employee.getAddress().setCity("Boston");
            employee.getAddress().setState(statejTextField.getText());
            employee.getAddress().setZip(Integer.parseInt(zipjTextField.getText()));
            userAccount.setUserName(userNamejTextField.getText());
            userAccount.setPassword(jPasswordField.getText());
            userAccount.setStatus(true);
            userAccount.setPerson(employee);
            userAccount.setRole(accountsEmployeeRole);
        }
    }//GEN-LAST:event_registerjButtonActionPerformed