Added in post form in index page, along with the post method in the main.rb file