finish user login and regist system