Add validations for on/off times (part of #18)