private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
        // TODO add your handling code here:
        errorLabel.setVisible(false);
        if(usernameTextField.getText().equals("Manager") && passwordField.getText().equals("password"))
        {
            menu.ManagerMode();
            menu.setWelcomeLabel("Welcome, Manager");
            this.dispose();
        }
        else if (usernameTextField.getText().equals("Cashier") && passwordField.getText().equals("password"))
        {
            menu.CashierMode();
            menu.setWelcomeLabel("Welcome, Cashier");
            this.dispose();
        }
        else if (usernameTextField.getText().equals("Chef") && passwordField.getText().equals("password"))
        {
            chefUI chef = new chefUI();
            chef.setVisible(true);
            this.dispose();
            menu.dispose();
        }
        else
        {
            errorLabel.setText("Error!: Invalid Username or Password!");
            errorLabel.setVisible(true);
        }
    }//GEN-LAST:event_okButtonActionPerformed