Adds error animation to modal forms.