added logged user method