Fixing nil class issue for stars when user not logged in