changed Edit method to preserve original values if there was a validation error.