update login

login by connecting to the server with json to transfer data