You're not actually saving the repository here, you have to save the current user then