private void initLoginPanel() {
        serverInput = new JTextField();
        loginInput = new JTextField();
        passInput = new JPasswordField();

        isLocalHost = new JCheckBox();

        isLocalHost.setSelected(true);
        isLocalHost.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                if(isLocalHost.isSelected() == true){
                    serverInput.setText(DEFAULT_SERVER_NAME);
                    serverInput.setEnabled(false);
                } else{
                    serverInput.setText("");
                    serverInput.setEnabled(true);
                }
            }
        });
        serverInput.setPreferredSize(inputDimension);
        loginInput.setPreferredSize(inputDimension);
        passInput.setPreferredSize(inputDimension);

        ActionListener connListener = new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                int l1 = loginInput.getText().length();
                int l2 = (new String(passInput.getPassword())).length();

                if(l1 == 0  || l2 == 0){
                    statusBar.setStatus(status.EMPTY_LOGIN_OR_PASSWORD);
                } else{
                    Pair<Boolean, Boolean> result = getAuthorise();
                    if(result.getFirst() == true){
                        if(result.getSecond() == true)
                            mainWindows = new AdminGUI("Admin main window", windowAdapter);
                        else
                            mainWindows = new RegularGUI("Regular user main window", windowAdapter);
                    setVisible(false);
                    }
                        currentUser = loginInput.getText();
                    }
            }
        };

        loginInput.addActionListener(connListener);
        passInput.addActionListener(connListener);

        serverInput.setEnabled(false);
        serverInput.setText(DEFAULT_SERVER_NAME);
        jPanel.add(isLocalHost);
        jPanel.add(serverInput);
        jPanel.add(loginInput);
        jPanel.add(passInput);
    }