added redirect_back_or def and store_location def in sessions helper.rb