added a function to check whether or not the user actually entered an int or not. See util.c