Checks number input to make sure it's valid (i.e. an interger)