added 'in' check for custom validation