Update authhelper.php