complete the function of register , login and info-update