title: Login problems because of firebase database rules
body: <p>My firebase database has the following rules:</p>
  
  <pre><code>{
    "rules": {
           ".read": "auth == null",
           ".write": "auth != null"      
         }
  }
  </code></pre>
  
  <p>Due to which I am not able to login into my app even though I am using the valid email id and password. When I change my rules to the one below, things work perfectly fine.</p>
  
  <pre><code>{
    "rules": {
           ".read": "auth != null",
           ".write": "auth != null"      
         }
  }
  </code></pre>
  
  <p>My app has a requirement in which the users need to read certain value of a specific child stored inside the database even if they are not authenticated users. But changing rules to <code>".read": "auth == null"</code> is causing login problem. What should I do in this case?</p>