fix custom validations for nil dates