def get_sender_password
      puts "Enter your password:"
      while @password = gets.chomp
        catch :badpass do
          puts "Are you sure your password is #{@password}? [y/n]:"
          while pass_confirmation = gets.chomp
            case pass_confirmation
            when 'y'
              return
            else
              puts "Please re-enter your password:"
              throw :badpass
            end
          end
        end
      end
    end
def get_sender_password
      puts "Enter your password:"
      while @password = gets.chomp
        catch :badpass do
          puts "Are you sure your password is #{@password}? [y/n]:"
          while pass_confirmation = gets.chomp
            case pass_confirmation
            when 'y'
              return
            else
              puts "Please re-enter your password:"
              throw :badpass
            end
          end
        end
      end
    end
Get and confirm user's password