protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
		
		HttpSession session = request.getSession(true);
		
		String userid = request.getParameter("userid");
		String pass = request.getParameter("password");
		
		ServletContext sc = this.getServletContext();
		String path = sc.getRealPath("/WEB-INF/userInfo.txt");

		File file = new File(path);
		BufferedReader br = new BufferedReader(new FileReader(path));
		boolean found = false;
		String line;
		while((line = br.readLine())!= null)
		{
			int split = line.indexOf("||");
			String username = line.substring(0, split);
			String password = line.substring(split + 1);
			if (line.contains(userid)){
				if(line.contains(pass)){
				found=true;
				//showPage(response, "Login Success!");
				session.setAttribute("userID", userid);
				RequestDispatcher requestDispatcher; 
				requestDispatcher = request.getRequestDispatcher("./home.jsp");
				requestDispatcher.forward(request, response);
				break;
				}
				else
				{
				showPage(response, "Sorry wrong Password");
				break;
				}
			}
			if(found == false)
			{	
				showPage(response, "Sorry, you either not register or you forget the username...");
				
			}
		}
		
    }