define AuthCtrl and include in index page