Firebase add new child with specified name
<p>This is my database</p>

<p><a href="https://i.stack.imgur.com/xOclS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xOclS.png" alt="enter image description here"></a></p>

<p>I'd like to add new users to database keeping that format. I've tried this:</p>

<pre><code>   //Store data in database
    Firebase usersRef = ref.child("Users");
    Map&lt;String, String&gt; userData = new HashMap&lt;String, String&gt;();

    userData.put("Nombre", name);
    userData.put("Password", pass);
    userData.put("Confirmed", "FALSE");
    userData.put("Email", mail);

    usersRef.setValue(name);
    usersRef = ref.child("Users").child(name);
    usersRef.setValue(userData);
</code></pre>

<p>The problem is whenever I add a new user, the previous one is overwritten.</p>