Example implementation of authentication for Ember