@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    User user = (User) o;

    if (firstname != null ? !firstname.equals(user.firstname) : user.firstname != null) return false;
    if (lastname != null ? !lastname.equals(user.lastname) : user.lastname != null) return false;

    return true;
  }