automatically redirects to post page if user is logged in