Added AJAX request to check name