Less ambiguous field list (for PostgreSQL compatibility).
Thanks to Michele Meloni.
Store user ID in session instead of serialized object to reduce complexity.