modified lib.validation to filter by form when applying unique ids. #411