added support for validation annotations

need to be tested with prepush because it could have major breaks (rework on the way locale are handled)