Fixed issues with session variables in the index page