edited the routes.rb file to take care of routing part
edited the session__store.rb file so system can store sessions using active record rather than cookies. Safer. Added gem activerecord-session_store in Gemfile. Done bundle update
done session migration