How to set a time for form to be automatically enabled?