added login to index