input validation !

basic (and rough) input validation