protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		String username = request.getParameter("username");
		String password = request.getParameter("password");

		HttpSession session = request.getSession(true);

		String user1 = "user83";
		String pass1 = "goldfish";
		if (username.equals(user1) && password.equals(pass1)) {
			session.setAttribute("username", username);
			request.getRequestDispatcher("/newpost.jsp").forward(request,
					response);
		} else {
			response.sendRedirect("incorrectlogin.jsp");
		}
	}