Fixed bug on login page and updated index page.