CRM-13114-hookImplementation - fixed validation issue