Prevents adding duplicate friends. Also fixed name->username for login.
Update packjage.json.