Corrected invalid maxlength usage