Bugfixes

Fixed the failed login from the last push, and added basic inventory
tracking.