Added a couple of isNaN statements to check if user is inputting a number.