another solution which make server side validate the register
ignore generated js source