private void outputLoginPage(HttpServletResponse response, LoginForm form, List<String> errors) throws IOException {
		response.setContentType("text/html");
	    PrintWriter out = response.getWriter();
	
	    out.println("<html>");
	
	    generateHead(out);
	
	    out.println("<body>");
	    out.println("<h2>Login & Register</h2>");
	    
	    if (errors != null && errors.size() > 0) {
	    	for (String error : errors) {
	        	out.println("<p style=\"font-size: large; color: red\">");
	        	out.println(error);
	        	out.println("</p>");
	    	}
	    }
	
	    // Generate an HTML <form> to get data from the user
        out.println("<form method=\"POST\">");
        out.println("    <table/>");
        out.println("        <tr>");
        out.println("            <td style=\"font-size: x-large\">E-mail Address:</td>");
        out.println("            <td>");
        out.println("                <input type=\"text\" name=\"email\"");
        if (form != null && form.getEmail() != null) {
        	out.println("                    value=\""+form.getEmail()+"\"");
        }
        out.println("                />");
        out.println("            <td>");
        out.println("        </tr>");
        out.println("        <tr>");
        out.println("            <td style=\"font-size: x-large\">Password:</td>");
        out.println("            <td><input type=\"password\" name=\"password\" /></td>");
        out.println("        </tr>");
        out.println("        <tr>");
        out.println("            <td colspan=\"2\" align=\"center\">");
        out.println("                <input type=\"submit\" name=\"button\" value=\"Login\" />");
        out.println("                <input type=\"submit\" name=\"button\" value=\"Register\" />");
        out.println("            </td>");
        out.println("        </tr>");
        out.println("    </table>");
        out.println("</form>");
        out.println("</body>");
        out.println("</html>");
	}