The problem is with your code anything but the validator. On what condition your form is validated? Just add this line (posabsolute's jquery validation engine capable of reading options from HTML5 data attributes):
input_usr.setAttribute('data-validation-engine', 'validate[required]');
Here list of validators you can use between square brackets in above line.