How to submit the form on the time limit being ended?