Refactor to use angularFireAuth service.