update input samples
update code for basic validation