Knockout adapter that validates observable values.