added logged in user extraction
added logged in user extraction