added has-error class to form-group on error

fixed the issue with form-group.