added logged in logic to interactions