updated user controller to save users on update