add class has-error to form group for change style form control