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