Add activelock, prevent duplicate logins
Implement activeLock lock/release in modules