Update datepicker in register.js