maxLength = 1 for textfield