got custom validator working