The issue is, that that method you have there is for join page. You cant take it as it is for the edit, as the function simply checks the db for duplicates, regardless of the member.
So, what you basicly need to do is surround those array push with a check to see if they edited the value or...