Hotfix for validation function calling back twice on errors.