Improvement in the data validation for time.

Although some improvement in data validation for time have been done, A
lot effort must be made because it’s not ok. Data, validation, and UI
are all mixed.