Added login to index view