Added AJAX auth.