adding error message in add
Changing FactoryGeneration