added function to get information about logged in user