Adding callback when validating modal