updating errors on post and put