develop base of login system and add NAT class for network access