Adding funtion to update users.