complete the network of login and register and forgetPassword