minor refactor in loginbackends