== changed to .equals in isPasswordOK for strings comparison