ajax callback on success id registration