fix up conditional for removing unusable login handlers