How to enable auto-submit after end of countdown timer ?