Your authentication function only checks the first password in the password array



public boolean isPasswordAuthenticated(String password)
for (int x = 0; x <=...