define([], function () {
  return {
    hasLoggedInUser: function() {
        return !!(this.profile && this.profile.get('username'));
    },
    profile: null
  }
});

define([], function () {
  return {
    hasLoggedInUser: function() {
        return !!(this.profile && this.profile.get('selected_identity'));
    },
    profile: null
  }
});

Use selected_identity for logged in user predicate
Use selected_identity for logged in user predicate
