public boolean addFriend(String username) {
    if (isAuthorized) {
      AddFriendMessage message = new AddFriendMessage(loggedInUser.getUsername(), loggedInUser.getName(), username);
      sendMessageToServer(message);
      return true;
    }
    return false;
  }