added an if statement to let you view the index page without being logged in