added validator for date parser