Code validation