To transition to the login screen if it is not an authentication state
:put_litter_in_its_place:
Want to mask the passwords
Added TeadownOptionalMiddleware class

Do not run the teardown If an exception is thrown.
Fix a bug that import error for TeardownOptionalMiddleware