presence validation script