Added update function to model users