Basic form validator class implementation

Pass in list of rules to function, array of errors based on the rules is
returned.