Changed the form method in index from GET to POST. Then added an endpoint in main.rb to accept the input from the form.