add login and index activity