add a function to get user id from session - this is always the first thing I add to ion_auth when I start a new project