improved validation

validates expected key/value pairs. more useful default textbox to
tinker with.