check if user already exists during upsert