# I can go back to the login screen without logout (just with device back button)

**URL:** <https://forum.adalo.com/t/i-can-go-back-to-the-login-screen-without-logout-just-with-device-back-button/6623>\
**Category:** Get Help\
**Created:** [December 2, 2020, 3:37pm UTC](https://forum.adalo.com/t/i-can-go-back-to-the-login-screen-without-logout-just-with-device-back-button/6623 "2020-12-02T15:37:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@Karim](https://forum.adalo.com/u/Karim)\
**Post date:** [December 2, 2020, 3:37pm UTC](https://forum.adalo.com/t/i-can-go-back-to-the-login-screen-without-logout-just-with-device-back-button/6623/1 "2020-12-02T15:37:44Z")

</div>

Hello,

We have a problem, when we come from a screen for example the login screen and we land on the home screen currently we can go back to the login screen with a swipe or a click on the “back” button of the smartphone and that’s a problem, we must normally log out to return to the login screen and not with a simple back. I tried to changing screen transition from push to “none” or “modal”… but didn’t work.

Thanks in advance for help.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [December 2, 2020, 3:48pm UTC](https://forum.adalo.com/t/i-can-go-back-to-the-login-screen-without-logout-just-with-device-back-button/6623/2 "2020-12-02T15:48:52Z")

</div>

Hi @Karim,

Yes, with Back button this is possible…  
As a workaround - you can create an "on-screen-enter’ action, for the Login Screen (and probably for the signup screen as well). The action should be a conditional one: if Logged-in User Email is not empty, then link the user to Home screen.

See example screenshot here:

 ![Screenshot 2020-12-02 at 18.47.28](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/ff17723adeeb8c0cfd812e741fe225b8b5117b45.png)

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![Karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@Karim](https://forum.adalo.com/u/Karim)\
**Post date:** [December 3, 2020, 8:57am UTC](https://forum.adalo.com/t/i-can-go-back-to-the-login-screen-without-logout-just-with-device-back-button/6623/3 "2020-12-03T08:57:52Z")

</div>

Thank you Victo, problem solved 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [December 13, 2020, 8:57am UTC](https://forum.adalo.com/t/i-can-go-back-to-the-login-screen-without-logout-just-with-device-back-button/6623/4 "2020-12-13T08:57:55Z")

</div>

Closed on December 13, 2020, 8:57am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
