Serializing user into a session