successful use of generated number validation