save 'active' to state in users