Added notifications for log in and out, update and create. Also modified update and create to get new product by chaining promises