fixed issue with login function due to change for Android.