Fix post controller index for guest user

Rebase broke display of index page if the user isn't logged in.
Added a conditional to check for signed in status.