Enum validator

specifiy the Enum class