migrate loginNames to lowercase