Injector: Add password check and fix logout