added code in index and register view to test COOKIE