Properly catch empty and alphabetical inputs.

Use a while loop to check for both empty and alphabetical inputs. Closes
#1