fixed minor error in date string validation
fixed small error in date validation