add the form-group class conditionally

The form-group does not seem to play well with horizontal forms.