[zhuao]change the register flow. should go to login page after register successful.