Updated index.rb to redirect to dashbaord after login