adding error printout to register failure callback to get more information on why registration is failing