fixed the logged in as feature