Registration works. AJAX still returning error