sending login request to server