private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
        // TODO add your handling code here:
        if (!Arrays.equals(jPasswordField1.getPassword(), jPasswordField2.getPassword())) {
            JOptionPane.showMessageDialog(null, "Your two passwords are inconsistent.\n"
                    + "Please check your input.");
            return;
        }
        
        UserAdmin userAdmin = new UserAdminAdapter();
        Long customerId = Long.valueOf(customerIdField.getText());
        String customerName = customerNameField.getText();
        String propertyAddress = propertyAddressField.getText();
        String phoneNumber = phoneNumberField.getText();
        String emailAddress = emailAddressField.getText();
        String primaryContactNumber = primaryContactNumberField.getText();
        String secondaryContactNumber = secondaryContactNumberField.getText();
        String licenseCode = licenseCodeField.getText();
        String masterPassword = String.valueOf(jPasswordField1.getPassword());
        String responseCode = responseCodeField.getText();
        
        CustomerInfo newCustomerInfo= new CustomerInfo();
        newCustomerInfo.setCustomerId(customerId);
        newCustomerInfo.setCustomerName(customerName);
        newCustomerInfo.setPropertyAddress(propertyAddress);
        newCustomerInfo.setPhoneNumber(phoneNumber);
        newCustomerInfo.setEmailAddress(emailAddress);
        newCustomerInfo.setPrimaryContactNumber(primaryContactNumber);
        newCustomerInfo.setSecondaryContactNumber(secondaryContactNumber);
        newCustomerInfo.setLicenseCode(licenseCode);
        newCustomerInfo.setMasterPassword(masterPassword);
        newCustomerInfo.setResponseCode(responseCode);

        if (userAdmin.createUser(newCustomerInfo)) {
            JOptionPane.showMessageDialog(null, "Successfully create your account.\n"
                    + "You can use your phone number: " + phoneNumber + " or your email: " + emailAddress + "\n"
                    + "as username along with your password to log in later.\n"
                    + "Thank you!");
            userAdmin.login(phoneNumberField.getText(), jPasswordField1.getPassword());
        } else {
            JOptionPane.showMessageDialog(null, "Failed to create your account.\n"
                    + "Please check your input.\n"
                    + "Please do not use too long or illegal characters.");
        }
    }//GEN-LAST:event_okButtonActionPerformed