Index: trip-planner-front/src/app/_services/planner.service.ts
===================================================================
--- trip-planner-front/src/app/_services/planner.service.ts	(revision 8d391a12ef6baa3aefe9611a6f7c5b569977c946)
+++ trip-planner-front/src/app/_services/planner.service.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
@@ -1,3 +1,3 @@
-import { HttpClient } from "@angular/common/http";
+import { HttpClient, HttpHeaders } from "@angular/common/http";
 import { Injectable } from "@angular/core";
 import { Observable } from "rxjs";
@@ -8,15 +8,25 @@
     providedIn: 'root'
 })
-export class PlannerService{
-    
+export class PlannerService {
+
+    httpHeaders: HttpHeaders = new HttpHeaders({
+        'Authorization': ''+sessionStorage.getItem("token"),
+        'Accept': 'application/json',
+        'Content-Type': 'application/json'
+      });
+      
+
     constructor(private httpClient: HttpClient){
     }
 
+   
     getAllPlanners():Observable<Planner[]>{
-        let url = "http://localhost:8080/api/planners";
-        return this.httpClient.get<Planner[]>(url);
+        let url = "http://localhost:8080/api/planners/user";
+        console.log("SERVID: " + sessionStorage.getItem("token"));
+        console.log(this.httpHeaders.get('Authorization'))  ;
+        return this.httpClient.get<Planner[]>(url, {headers: this.httpHeaders});     
     }
 
-    postInitialPlanner(planner: Planner): Observable<Object>{     
+    postInitialPlanner(planner: Planner): Observable<Planner>{     
         let url = "http://localhost:8080/api/planner/new";
         return this.httpClient.post<Planner>(url, planner);
@@ -25,5 +35,5 @@
     updatePlanner(id: number, plannerDto : PlannerDto):Observable<Planner>{    
     let url = "http://localhost:8080/api/edit/planner/" + id;
-    return this.httpClient.put<Planner>(url, plannerDto);
+    return this.httpClient.put<Planner>(url, plannerDto, {headers: this.httpHeaders});
     }
 
Index: trip-planner-front/src/app/_services/user.service.ts
===================================================================
--- trip-planner-front/src/app/_services/user.service.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/_services/user.service.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
@@ -0,0 +1,53 @@
+import { HttpClient, HttpHeaders } from "@angular/common/http";
+import { Injectable } from "@angular/core";
+import { Observable } from "rxjs";
+import { map } from "rxjs/operators";
+import { LoginRequest } from "../_models/dto/loginRequest";
+import { UserDto } from "../_models/dto/userDto";
+import { User } from "../_models/user";
+
+@Injectable({
+    providedIn: 'root'
+})
+export class UserService{
+
+     headers = new HttpHeaders({
+        'Content-Type': 'application/json',
+        'Access-Control-Allow-Headers': 'Content-Type',
+
+      });
+    
+    constructor(private httpClient: HttpClient){
+
+    }
+
+    registerUser(user : UserDto) : Observable<User>{
+        let url = "http://localhost:8080/api/users/register";
+        var reqHeader = new HttpHeaders({'No-Auth' : 'True'});
+        return this.httpClient.post<User>(url, user, { headers: reqHeader });
+    }
+    
+    authenticateUser(loginResult : LoginRequest) {
+        let url = "http://localhost:8080/api/users/login";
+        var reqHeader = new HttpHeaders({'Content-Type': 'application/json'});
+        return this.httpClient.post<any>(url, loginResult)
+        .pipe(
+            map(userData => {
+                sessionStorage.setItem("username", loginResult.username);
+                let tokenStr =  userData.token;
+                sessionStorage.setItem("token", tokenStr);
+                return userData;
+            })
+        );
+    }
+  
+      isUserLoggedIn() {
+        let user = sessionStorage.getItem("username");
+        let token = sessionStorage.getItem("token");
+        console.log(user);
+        console.log(token);
+        console.log(!(user === null));
+        return !(user === null);
+      }
+    
+}
