Added validations to product model. Added average_rating method