Sounds like it would work. You don't need the 'User found' stuff as that was just an example for debug or explanation.