Fixing continue url and cookie validation