using active state for login - logout
using active state for login - logout