Added the case where the user enters a string of non-digit characters as a failsafe.