added root & username/password checks