modified the view of posts if the user is not logged in #174