raise error if rating is not between 1-5