Added check the length field in the dialogue.