onStateChange -> onChange
validation: 'auto' is now implied