added logic for activate\deactivate users