added validator for due date, resolves #9