Fix validation in listing.rb