don't validate datetime if value is empty