Securing entire app and redirecting index page