Add logout, but error when opening
Fix logout issues.