communicate with server by utilizing login signup api