Verifies if the inserted dates/times are valid. Fixes #15.

fixes #12