check to make sure input is an integer