if user_data['name'] is nil, use the jid without domain for name