public function actionIndex()
    {
        // redirect logged in users
        if (!Yii::$app->adminuser->isGuest) {
            return $this->redirect(['/admin/default/index']);
        }
       
        $this->registerAsset(Login::class);
        
        $this->view->registerJs("$('#email').focus(); checkInputLabels();
        	observeLogin('#loginForm', '".Url::toAjax('admin/login/async')."', '".Url::toAjax('admin/login/async-token')."');
        ");
    
        UserOnline::clearList($this->module->userIdleTimeout);
        
        return $this->render('index');
    }