automatically sets user_id to session value