Fixed YouTube Code Validation Logic