fix bug no 6 (adding the setcookie)