update user works,it saves the users updated info in the db