getting profile details for logged in user