add login ajax to index.html