Initial implementation of rule validator