protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String username=request.getParameter("username");
		
		String password=request.getParameter("password");
		HttpSession session=request.getSession();
		LoginCheck lm=new LoginCheck();
		ArrayList<Object> arr=new ArrayList<Object>();
		arr=lm.isValidUser(username,password);
		Boolean status=(Boolean)arr.get(0);
		String type=(String)arr.get(1);
		System.out.println(status+"");
		System.out.println(type);
		if(status==true )
		{
			session.setAttribute("username", username);
			session.setAttribute("password", password);
			session.setAttribute("type", type);
			/*RequestDispatcher dispatcher = 
				  getServletContext().getRequestDispatcher("/home.jsp");
				dispatcher.forward(request, response);*/
			response.sendRedirect("home.jsp");
		}
		else
		{
			request.setAttribute("message", "Invalid Login Id/Password");
			RequestDispatcher dispatcher = 
				  getServletContext().getRequestDispatcher("/login.jsp");
				dispatcher.forward(request, response);
			//response.sendRedirect("login.jsp");
		}
			
	}