I'm rusty on my Java, and I'm not at a computer in which I can test this.
However, I believe if you want to compare two strings in Java you need to use the .equals method rather than ==.
example
if(password.getText().equals("NateTheWizard")){
}
Greetings.