Added validation and associations to genre.rb.