VE-160 use maxlength attr instead of js logic