Fixed auth redirect