Protect validation func. Closes #2200