modified user model, fixed user_id