also checks that user is logged in before showing last post link