|#663|+Balvinder| Fixed bug. Giving meaningful error message on template form invalidation