@Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        int usertype = (Integer) request.getSession().getAttribute("usertype");
        if (usertype != UserDAO.ADMIN) {
            request.getRequestDispatcher("/app/home.jsp").forward(request, response);
        } else {
            List<UserDAO.User> users = UserDAO.selectAllusers();
            request.setAttribute("users", users);
            request.getRequestDispatcher("/app/users.jsp").forward(request, response);
        }
    }