Validate the owner type. This will fix the problem where the API returns 500 with a malformed request that contains a wrong owner_type
User filters are ordered alphabetically, taking advantage of the .to_s implementation of hostgroup