added user activation and deactivation