Use custom attributes in validation

Validation are not make use of language attributes. This patch solve the problem.