Fix login to work correctly with is_active etc.