validations and average rating in products