perform some simple date validation