What my code doesn't get passed by validator?