Solved some devise issues
Added average_rating method