Reimplemented session, PIN is cached in session