validation for duplicated tasks