added a validation for date < due