Feature/fix resource logout