add the ajax to register