Add max char length to input field.
Fix duplicate message.