corrected authentication code