Added validator for date