Changed validation rules to use error code strings.

AFDP-32