re-added the authentication for index page