Thanks, @Brad Bowman  

Was just trying that, but then another question came up, in case of a user doesn't exist, we would like that "do this until user is found" to stop after, let's say 10 attempts, is that possible?