Fix form-group rules for text inputs.