add some logging, checking for empty xform id