#6: Fixed unauthorized access to pages only for logged in users.

Fixed #6.