added validation for dublicate title of tasks