Clear validation errors when navigation away from product

When leaving product form while showing validation errors, these errors were not cleared. This branch is trying to fix it. The clearing is extracted to a seperate method on the controller.