Update AuthManager.php