gives warning message if number is not in proper format