Fixed auth failure handler