addded login funtionality to index.html