#396 Fixed getting logged in user