changes to LoginActivity.java