rudimentary user input check