Validated with if statement

Validated with if statement