Handle login failure with dialog popup