Update register.js

2nd part of duplicate email fix.