Changed how auth is handled in base view.