making sure the custom validator is only resolved on admin requests