Reformat for clarity
Added Error class for validation error localization