use whatever ID property the model uses
Merge branch 'bugfix/session-middleware-user-class' into temp