check validation.