checking if number is typed