moved authentication logic into an Ember.Mixin