added publish/subscribe based on logged in user id