Adding a simple date validator