added updating of the user