Update LoginActivity.java

Added shared preferences