add update functionality to users