Adapting AJAX test to registration form