Corrected authentication redirection.