check if user input is number or not