public LoginController() {
        loginForm = new LoginForm();
        loginForm.setVisible(true);
        onLoginClick = new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
                String username = loginForm.getUsernameText().getText();
                String password = loginForm.getPasswordText().getText();

                System.out.println("Login pressed");
                try {
                    //String he = CryptedOutputStream.encrypt(password);
                    //System.out.println(he);
                    //String je = CryptedInputStream.decrypt("ThisIsASecretKey", he);
                    //System.out.println(je);
                } catch (Throwable ex) {
                    Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex);
                }
                LoginCredential loginCredential = new LoginCredential(username, password);

                try {
                    LoginCredentialDAOFileImpl dao = new LoginCredentialDAOFileImpl();

                    if (dao.isValid(loginCredential)) {
                        ContainerController container = new ContainerController();
                    }else{
                        loginForm.getInvalidLogin().setText("Invalid login");
                    }
                } catch (Exception ex) {
                    Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex);
                } catch (Throwable ex) {
                    Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex);
                }



            }
        };
        this.loginForm.getLoginButton().addActionListener(onLoginClick);
    }