consolidating login and index page together