Update main.rb

Fixed bug when deleting hash from config.yaml circumvents password.