Ajax functionality for activating and deactivating users