Reimplemented a registration sequence using cookies