Create server login code