fixed it to save a cookie finally