Added toJSON to be able to save user. Also now have an update function that updates the child object of that class