Index: Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/PostController.java
===================================================================
--- Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/PostController.java	(revision b00d81b00c7b62cbf72a4dcfd5c343449fa649cb)
+++ Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/PostController.java	(revision 3e591771deefcd08726589c43e9d7f41ea7c87b4)
@@ -48,10 +48,10 @@
                            HttpServletRequest request) {
 
-        Employee employee = (Employee) request.getSession().getAttribute("employee");
+        Employee employee = (Employee) request.getSession().getAttribute("user");
 
         Pet pet = new Pet(imageUrl, AgeGroup.valueOf(ageGroup), Size.valueOf(size), breed, name, Species.valueOf(species), Gender.valueOf(gender), canBeFostered, null, employee.getShelterId());
         this.petService.save(pet);
 
-        Post post = new Post(LocalDate.now(), imageUrl, pet.getId() , null, employee.getId() );
+        Post post = new Post(LocalDate.now(), imageUrl, pet.getId(), null, employee.getId());
         this.postService.save(post);
 
