fixes date validation issue in