save login details to shared preferences