protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		String login = request.getParameter("login");
		String password = request.getParameter("password");

		HttpSession session = request.getSession();

		if (login == null || password == null || login.isEmpty() || password.isEmpty()) {
			request.getRequestDispatcher("adminLogin.jsp").forward(request, response);
		} else {
			Admin admin = adminService.isValidLogin(login, password);
			if (admin != null) {
				session.setAttribute("adminId", admin.getId());
				response.sendRedirect(request.getContextPath()+"/admin");
			} else {
				request.getRequestDispatcher("adminLogin.jsp").forward(request, response);
			}
		}
	}