add update user functionality