Added some better error-handling: rescue bad password, and EOL handling
in STDIN capture