set MDHlogin cookie when app starts.