public void setUsrAndPwd(String name, char[] pwd) throws ClassNotFoundException {
        try {
            this.name = name;
            this.pwd = new String(pwd);
            String username = this.logIn();
            switch (username) {
                case "office": {
                    new OfficeWorkerGUI().setVisible(true);
                };
                break;
                case "manager":new ManagerGUI().setVisible(true);
                break;
            }
        } catch (SQLException ex) {
            Logger.getLogger(SuppliersDB.class.getName()).log(Level.SEVERE, null, ex);
        }
    }