fix error messages on enum, and add default value option
add default value option for enum and fix error message display