/*
   * UserID uid should not be null
   */
  private static boolean checkPassword(String password, boolean newPassword, UserID uid) {

    if (password == null || password.length() < 8) {
      System.out.println("Password must be length of 8 or more.");
      return false;
    }

    assert (uid != null);
    if (!newPassword && !uid.getPassword().equals(password)) {

      System.out.println("Password does not match with the username");
      return false;
    }
    return true;
  }