Changed the index, added login authentication.