re build all login system
rebased as client-server program with fake login