restricts custom validation message to be used inside Validators:: only and with defined Form:: or const