protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String forward = "";
		Map params = request.getParameterMap();
		PrintWriter pw = response.getWriter();
		HttpSession session = request.getSession();
		String username = "", password = "";
		boolean authFlag = true;
		
		if (params.containsKey("submit")){
			username = request.getParameter("username");
			password = request.getParameter("password");
			if(!isUserSessionActive(session, username)){
				try{
					authFlag = authentication(session, username, password);
				}catch(Exception e){
					e.printStackTrace();
				}
			}
			
		}
		
		if(!authFlag) request.setAttribute("auth_error", "Authentication failed!!!");
		
		RequestDispatcher view = request.getRequestDispatcher(isUserSessionActive(session, username) ? 
				"student_dash.jsp" :"login.jsp");
		
		//	Delete the session
		if(configLib.devMode) session.removeAttribute("user");
		
		view.forward(request, response);
		
	}