Checks to see if valid number