fix, add validation and testing for votes and ratings