Add default validation logic for id if uses id. Fixes issue #2