Added due date validation for tasks.