Use preference to store lastest username that is logged-in.