setting interval before validation instead of before save