added updateUser method.