add login , index, and logout