added custom validator