updated demo with field valid/pristine