creating the server login code