add regist/login/logout /writeblog/session function