change to use real server
sync with server
update preference to save the information about login & uesername