Fixed rating bug. Fixed bug for when logged out. Displays average rating on index