Added task date validation