save edited user details to mongo