Made index page viewable when not logged in by using the index request variable