Small validation issue

(Was copypasted from post pages a few versions ago.)