fixed validate in set helper