fixed typo on setting maxlength to input field