setVisible(true);
if (returnStatus == RET_OK) {
credentials.setUsername(usernameTextField.getText());
credentials.setHashedPassword(CryptoUtil.cryptPassword(passwordField.getPassword()));
} else {
throw new CryptoException("user canseled login");
}
}