created validator in store method