Function getValidationMode