@RNKushwaha not sure I got your question correctly, but if you want to produce a custom error message for that specific situation, you add a custom validator for that. If your question is about producing a specific / modified markup, I suggest you post it as a new question and link it to this one.
– domsomSep 15 '14 at 8:25

Ok I'll ask a new question but often people make questions duplicate.
– RN KushwahaSep 15 '14 at 9:41

Can't the 'error' => array('attributes' => array('class' => 'controls help-block')) code go in inputDefaults? From your example, it kind of looks like you're implying that it has to be done for each field.
– NickMay 24 '12 at 16:22