Added validation to ensure the same category and user are only added to a task once