Now checking location cookie instad of localstorage