Modify LoginActivity to avoid NullPointerException when pressing Login button