properly process logged in user