Added dynamic display of homepage based on whether the user is logged-in or not.