I'm making a short program where the user will enter the username and password only the server knows. They have 4 tries to get it right, and if they do not enter the correct info they will be kicked off the server. 

If the user enters the incorrect login the first time, it allows them to enter the username and password again and tells them they have 3 tries. But after this, it gets stuck and does not loop again. How can I fix this?

The code:

```
int tries = 4;
        while (tries>=0) {
            out.println(login);

            //login
            String username = in.readLine();
            System.out.println("Client's username: " + username);

            String password = in.readLine();
            System.out.println("Client's password: " + password);

            if (username.equals("hello123") && password.equals("mypass")) {
                out.println("Correct login!");
                System.out.println ("Client's IP Address: " + localaddr.getHostAddress());
            }

            else if (!username.equals("hello123")||!password.equals("mypass")) { //if wrong login - give 3 more tries

                tries--;
                System.out.println("Number of tries left: " + tries);
                out.println("Try again, enter username and password. Login attempts left - " + tries);

                //login
                username = in.readLine();
                System.out.println("Client's username: " + username);

                password = in.readLine();
                System.out.println("Client's password: " + password);
            }
        }
        if (tries==0){
            out.println("Wrong login - server closing");
            out.close();
            skt.close();
            srvr.close();
        }

```