update login and regist and main