implemented unique login with cookie