Fixing the validation issue so validation is not attempted on a empty string.
Also added appropriate code for Localization.