bug fix done for duplicate user id