add ajax to registration page and ajax test