adds validation error animation