Only dismiss loginViewController if it wasn’t dismissed before.