Update Login.java

put file read/write into background thread.