simplified the findByLogin code and made it properly run in parallel