update logic in settings/logout view