added is_active flag to user model