add logs to track register error