key save function in UserModel