Added automatic client login.