fixed/completed persistence example for logged in users