Rule validators

Custom validator, debugger added (to remove later on).