Implemented a password authentication for indexing