Move authentication to an initializer