if (username.equalsIgnoreCase(login.getUsername())) {
if (!login.getUsername().equalsIgnoreCase(thisPerson.getUsername()) && username.equalsIgnoreCase(login.getUsername())) {
    public static boolean checkIfUsernameExists(String username, Person thisPerson) {                for (Login login : Identification.readAllLogins()) {            if (username.equalsIgnoreCase(login.getUsername())) {                return true;            }        }        return false;    }