Fix login with the new active attribute