added security to the rating system