reference validation