Added isActive flag for login.