Model fixes, referral fixes, session destroyed on logout