Hello @rahul and thanks for sending your source code for review. The login user popup not being displayed was caused by the UI running into a deadlock. The latter was caused by mixing synchronous and asynchronous code. It's recommended to do Async All the Way and to Don't block but await instead.
Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.