No else required.
Only add error class to the field with the error.
Fix cgi target so field values is preserved on error.