refs #8 fix avatar and persistent cookie