add login and index