Fixed validation process
Updated example