add error check for rule-email
add error check for rule-empty test
add error check for rule-eq test
add error test for rule-exact_lenth test
add format params serialize method
add error check for rule-format test
add error check for rule-max-length test
add serialize for rules: exact_length, max_length, max_value, min_length, min_value
add error check for rule-max_value test
add error check for rule-min_length test
add error check for rule-min_value test
add error check for rule-not test
add error check for rule-required test
add error check for rule-type test