Added ability to override maxLength using an attribute on the input element, as well as ability to enforce maxLength not being exceeded.