Edit some codes in register.js