Fixed due date issue, code does not yet prevent duplication