throw on invalid rule type, remove namespace

throw an exception when an unsupported validation type is used
remove namespace (i don't really care)