fix validation issue with empty string