Have a look at this module from the appstore: https://appstore.home.mendix.com/link/app/66443/Appronto/SignIn-microflow-for-Mx7-/-Mx8 depending on your needs might give you what you want or at least an idea on how to implement this differently.