Did you check the documentation about security?
https://docs.mendix.com/studio/settings-security#enabling-security
I suggest that you open your app from Studio Pro, and enable the security there before deploying your app.
Just click on Enable Security and it creates basic users and thats done. Then it will work.