Fixed a bug, validate took a hard-coded list of rules