Port validation levels to enum34