private void EnterPINActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EnterPINActionPerformed
        JLabel jPassword = new JLabel("Enter your PIN: ");
        JTextField password = new JPasswordField();
        Object[] ob = {jPassword, password};
        int result = JOptionPane.showConfirmDialog(this, ob, "PIN ", JOptionPane.OK_CANCEL_OPTION);
        if (result == JOptionPane.OK_OPTION) {
            String passwordValue = password.getText();
            try {
                writer.getters.worker.manager.VerifyPin(passwordValue);
                JOptionPane.showMessageDialog(null, "PIN successfully verified" + CardManager.getTerminal(), "", JOptionPane.INFORMATION_MESSAGE);
                ReadWithPIN.setEnabled(true);
                EnterPIN.setEnabled(false);
            } catch (WrongPINException ex) {
                System.err.println("Wrong PIN entered");
                JOptionPane.showMessageDialog(null, "Wrong PIN entered", "", JOptionPane.ERROR_MESSAGE);
            } catch (WrongLengthOfPINException ex) {
                System.err.println("Wrong PIN length entered: PIN must have 4-8 characters");
                JOptionPane.showMessageDialog(null, "Wrong PIN length entered: PIN must have 4-8 characters", "", JOptionPane.ERROR_MESSAGE);
            } catch (WrongPINCharactersException ex) {
                System.err.println("PIN must consist only of numerical characters");
                JOptionPane.showMessageDialog(null, "PIN must consist only of numerical characters", "", JOptionPane.ERROR_MESSAGE);
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(null, "something went wrong", "", JOptionPane.ERROR_MESSAGE);
                Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_EnterPINActionPerformed