validation for due date