updated validation for date field
Fixed validation