Added login check for ES connection/indexes.