add vaildation message and fix bug remove template
fix bug when create/update modelState is not valid