run validation only if QA variable is present