Set up index to login first