Fixing login for iphone.