add ajax request to registration form