Removed console.log statement in validate_link