Thanks for contacting us.
I would suggest using debug in simulator
and debug on device
features in order to investigate similar issues.
From first sight I think that you don't return your realpw
value from app.logincheck
If you still need further assistance please provide us your project name or the project itself in a private ticket
so we could take a look, even though debugging a third party software is not in the scope of the support service.