Validation code

Validation code