Added additional validation of type
Fixed search function not using the correct field name
Merge pull request #3 from jrouzierinverse/feature/sepm

Fix search