GAGA: refactoring register.js
GAGA: refactoring register.js
GAGA: refactoring register.js