title: Angular/TypeScript : How to resolve this compilation issue?
body: <p>Hell
  I ma new in angular 5. I am create a login and auth service. But i cannot compile my code.  Here is my code </p>
  
  <pre><code>// user.service.ts
  import { Injectable } from '@angular/core';
  import { Http, Headers } from '@angular/http';
  import { Observable } from 'rxjs/Observable';
  import 'rxjs/add/operator/map';
  
  @Injectable()
  export class UserService {
    private loggedIn = false;
  
    constructor(private http: Http) {
    //  this.loggedIn = !!localStorage.getItem('auth_token');
    }
  
  //authenticate user with dummy logic because i use a json-server
    authenticate(login:string, password:string) {
      console.log('Authenticate ....');
      const credentials = {login:login, password:password};
      let headers = new Headers();
      headers.append('Content-Type', 'application/json');
  
      var result = this.http
        .get(
          '/users?login?'+JSON.stringify(login),
          { headers }
        );
  
        if(result.password==password){
          return true;
        }
        return false;
      }
  
  
  }
  </code></pre>
  
  <p>When i compile ( ng server ) i get the following error </p>
  
  <pre><code>ERROR in src/app/auth/user.services.ts(28,17): error TS2339: 
  Property 'password' does not exist on type 'Observable&lt;Response&gt;'.
  </code></pre>
  
  <p>Line 28 is :  <code>if(result.password==password){</code></p>
  
  <p>I don't know what i am missing ?I try to understand the Observable concept. If you add an idea, it will help me.
  Thanks</p>