add logging to confirmation_period_valid?