protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		AccountManager am = (AccountManager)getServletContext().getAttribute("account manager");
		String username = request.getParameter("username");
		String password = request.getParameter("password");
		if(am.accountMatch(username, password)) {
			HttpSession session = request.getSession();
			User user = User.getUserByUsername(username);
			session.setAttribute("user", user);
			RequestDispatcher dispatch = request.getRequestDispatcher("homepage/homepage.jsp");
			dispatch.forward(request, response);
		}
		else {
			RequestDispatcher dispatch = request.getRequestDispatcher("login/tryAgain.html");
			dispatch.forward(request, response);
		}
	}