simple homepage redirect with cookies working