Fix model that always cast the validation to lowercase and cause the validation not working.