add rule serializer
add name property for rule
add correct validation error for rule-not