update UserRepository (for register)