protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		if (checkLoggedIn(request))
		{
			//Logged in...
		
			//Simply list all users being followed..
			
			List<User> following = friendService.getFollowing(user.getEmail());	//Get friends
			List<User> allUsers = friendService.getAllUsers(user.getEmail());	//Get all users
			
			
			if (following.size() == 0)
			{
				//Return with a message if you aren't following anybody
				request.setAttribute("failureMessage", "You are currently not following anybody");
			}
				//Loop through all users adding a flag saying whether they're friends of the currently logged-in user or not.
				for (User user : allUsers)
				{
					String userEmail = user.getEmail();
					for (User friend : following)
					{
						if (friend.getEmail().equals(userEmail))
							user.setFriend(true);
					}
					
				}
				
				request.setAttribute("users", allUsers);
				request.getRequestDispatcher("following.jsp").forward(request, response);
				return;
			

		}
		else
		{
			//Not logged in - Redirect to login page
			response.sendRedirect("login");	
			return;
		}
	}