Corrected UserRepository update