added validation for rating, no errors though