Fixed problem of form creation showing in modal when logging out