added support for deprecated field, is_valid, and wrote a test