Added average rating method to index page and amended front-end so that only Users who have signed in can leave a review and rating