add connection to get usernames from the server and send credentials back to the server