Corrected add friend logic

Corrected add friend logic