fine tuned getting user_id