@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) {
        HttpSession session = request.getSession(true);
        if (session.getAttribute("User") == null) {
            String username = request.getParameter("username");
            String password = request.getParameter("password");
            try {
                DaoFactory daoFactory = MySqlFactory.getDaoFactory();
                GenericDao<User> dao = daoFactory.getUserDao(daoFactory.getConnection());
                List<User> list = dao.selectAll();
                list.stream().filter((user)
                        -> (username.equals((String) user.getUsername())
                        && (password.equals((String) user.getPassword())))).forEach((user)
                                -> {
                            session.setAttribute("User", user);
                        });
                request.getRequestDispatcher("UserMenu.jsp").forward(request, response);
            } catch (SQLException | ServletException | IOException ex) {
                Logger.getLogger(OpenLoginMenuCommand.class.getName()).log(Level.SEVERE, null, ex);
            }
        }

    }