replaced 'post' by 'put' for updating users