index page quick fix (error when not logged in)