def on windows
implement regist and login
some change for register and login