bugfix on registration.js