continue to modify login, register and add friend logic