Adding validation.