validating spark