Fixing index auth redirect