debugging login that work on web but not on mobile