Added connection to the server and finished the addition of account