add rudimentary validation hook