Added constraint for adding homework when the deadline is over