Fixed login bug and shared pref for repeatedly hitting the login page