login and logout connected to index page