Added working login, register connection with the server