Corrected auth success logic