changed user.load() to user.instance() and made user.isLoggedIn() synchronous