finish inddex loginout regist