save user_id when retrieve record from file