valid function

Validation of the chosen model.