Fix inverted dates validation logic. Doh!