(1) Add custom validation using xs:pattern check
(2) Fixing error codes