security getLoggedInUser fix