Modified /companies/save middleware

* Also standardized the way errors are returned to the client