create custom validation to prevent the creation of deadlines in the past