private void signUpButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_signUpButtonActionPerformed
        if (!new String(passwordField.getPassword()).equals("") && !new String(confirmPasswordField.getPassword()).equals("")
                && new String(passwordField.getPassword()).equals(new String(confirmPasswordField.getPassword()))) {
            if (!usernameField.getText().equals("") && !firstNameField.getText().equals("") && !lastNameField.getText().equals("") && !emailField.getText().equals("")) {
                if(Utils.addUser(usernameField.getText(), new String(passwordField.getPassword()), firstNameField.getText(), lastNameField.getText(), emailField.getText())){
                    this.setVisible(false);
                    this.dispose();
                    Thread.currentThread().interrupt();
                }else{
                    this.infoLabel.setText("User already exists");
                    this.infoLabel.setForeground(Color.red);
                    this.infoLabel.setVisible(true);
                }
            } else {
                this.infoLabel.setText("All fields must be filled");
                this.infoLabel.setForeground(Color.red);
                this.infoLabel.setVisible(true);
            }
        } else {
            this.infoLabel.setText("Passwords do not match");
            this.infoLabel.setForeground(Color.red);
            this.infoLabel.setVisible(true);
        }
    }//GEN-LAST:event_signUpButtonActionPerformed