Fix validate method

Returns the result object in synchronous mode
Merge branch 'sanitize_feature'