Index page goes to login and then to home