Changed implementation of the method to update the user (Put).