fixing undefined users array if auth is false and admin.authenticate calls to use connection