change attend url api
fix bug cannot get list from server if local database is empty.
add validation callback  function in getToken