Fixed login issues on iOS device

The iOS device when added to the home screen ended up stuck on the login
screen.