adding user update fuctionality