This feature will not work when the login is enabled for your form. You can simply set a schedule date at which the form will be disabled. You can set it up by going to:
Disable Form section
Turn on Disable form at scheduled date toggle
Set a date and time in Date at which the form will be disabled
The date and time used in this setting follows the time zone of the admin.