Use serialize to resolve error keys to field names
Added test case for server-side validation errors