finished index page and login logic