Adds user CRUD actions and fixes bugs on User log out