updated error logging to provide account id