private void showLogin(){
        e = new LoginPanel();
        //ButtonPanel.setVisible(false);

        mainFrame.add(e);
        Dimension d = mainFrame.getSize();
        mainFrame.invalidate();
        mainFrame.validate();
        mainFrame.repaint();
    }