add check.php and codes in dc.js for checking if user cookie exists