title: How to use firebase login with email and password on Android
body: <p>When I tried to follow the Firebase website for tutorial (<a href="https://www.firebase.com/docs/web/guide/login/password.html" rel="nofollow">https://www.firebase.com/docs/web/guide/login/password.html</a>)  on developing a simple login on android studio, I faced error, with red wiggly lines. </p>
  
  <p>Could someone help me or suggest a good place to learn about step by step tutorial on how to create a simple login using firebase. Resources on firebase login for android are very limited online. Would be great if someone could help me . </p>
  
  <p>This is the code copied from firebase website for login, when I paste it into my code I have red error on email password function error UserData etc etc.</p>
  
  <pre><code>   mRef.createUser({
              email    : "bobtony@firebase.com",
              password : "correcthorsebatterystaple"
      }, function(error, userData) {
          if (error) {
              console.log("Error creating user:", error);
          } else {
              console.log("Successfully created user account with uid:", userData.uid);
          }
      });
  </code></pre>