Checks and validates a form and returns: a list of errors in JSON format or validation errors directly under the non-validated fields.