findOneBy instead of findBy when searching for registration record