fix custom validation