fix register.js

confirm pass validation