adds instance fields that need to validate to the validator class.