Added a conditional to index.html.erb