add login and index view