Angular with php slim framwork with login and CRUD functionality