Validate time inputs.

closes #13