update check_cookie in project_haml