custom post type validate custom fields