private void OkClicked(){
        String login = Field1.getText();
        String password = String.valueOf(Field2.getPassword());
        final Object current = usersService.login(login,password);
        if (current==null) {
            JOptionPane.showMessageDialog(this,"Неверный логин/пароль","Ошибка",JOptionPane.INFORMATION_MESSAGE);
            return;
        } else if (login.equals("admin")) {
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    AdminForm adminForm = new AdminForm(weatherForecastUpdateService);
                    adminForm.setVisible(true);
                }
            });
        } else {
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    MainForm mainForm = new MainForm(current,weatherForecastUpdateService);
                }
            });
        }
        usersService.close();
        dispose();

    }