Validates and average_rating in product model